package com.sc.VenusQueryBeta.adapter;


import android.support.annotation.Nullable;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseViewHolder;
import com.sc.VenusQueryBeta.R;
import com.sc.VenusQueryBeta.model.bean.account.List;


/**
 * Created by Administrator on 26/9/2018.
 *貴賓服務適配器
 */

public class VipServiceAdapter extends BaseCompatAdapter<List.Clients, BaseViewHolder> {

    public VipServiceAdapter(int layoutResId) {
        super(layoutResId);
    }


    public VipServiceAdapter(int layoutResId, @Nullable java.util.List<List.Clients> data) {
        super(layoutResId, data);
    }


    @Override
    protected void convert(BaseViewHolder helper, List.Clients item) {
        helper.setText(R.id.tv_account, item.getClientid());
        helper.setText(R.id.tv_name, item.getClientnamecn());
        TextView name = helper.getView(R.id.tv_name);
        if (item.getClientnamecn().length()>4){
            name.setTextSize(18);
        }
    }
}